import http from '@/utils/http'

//验证手机号码是否被注册
export const getDocheckPhoneAPI = (tel:any)=>{
return  http.post<any>('/api/user/docheckphone',{
    tel
})
}


//验证验证码
export const getDocheckCodeAPI = (tel:any,telcode:any)=>{
  return  http.post<any>('/api/user/docheckcode',{
    
      tel,
      telcode
    
  })
  }


//注册
export const getDoFinishRegisterAPI = (tel:any,password:any)=>{
  return  http.post<any>('/api/user/dofinishregister',{
    
      tel,
      password
    
  })
  }

 //获取验证码
export const getDoSendMsgCodeAPI = (tel:any)=>{
  return  http.post<any>('/api/user/dosendmsgcode',{
    
      tel
     
    
  })
  }
 
  //登录
  export const userLoginAPI = (loginname:any,password:any)=>{
    return  http.post<any>('/api/user/login',{
      
      loginname,password
       
      
    })
    }


  